

            function addArduinoCod (Blockly) {
            
                        
                        

                        
        Blockly.Arduino['EXT_VIBRATION_SENSOR_BLOCK_1608080919212'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_VIBRATION_SENSOR_BLOCK_1608080919212'] = ``;
            Blockly.Arduino.definitions_['define_EXT_VIBRATION_SENSOR_BLOCK_1608080919212'] = `#define ShockAnalogPin${pin} ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_VIBRATION_SENSOR_BLOCK_1608080919212'] = `pinMode(ShockAnalogPin${pin}, INPUT);`;
             return  [`analogRead(ShockAnalogPin${pin})`];
        }
                    

                        
        Blockly.Arduino['EXT_VIBRATION_SENSOR_BLOCK_1608080919303'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_VIBRATION_SENSOR_BLOCK_1608080919303'] = ``;
            Blockly.Arduino.definitions_['define_EXT_VIBRATION_SENSOR_BLOCK_1608080919303'] = `#define ShockDigitalPin${pin} ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_VIBRATION_SENSOR_BLOCK_1608080919303'] = `pinMode(ShockDigitalPin${pin}, INPUT);`;
             return  [`digitalRead(ShockDigitalPin${pin})==0`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        